home *** CD-ROM | disk | FTP | other *** search
/ Aminet 51 / Aminet 51 (2002)(GTI - Schatztruhe)[!][Oct 2002].iso / Aminet / util / cli / waitx.readme < prev   
Encoding:
Text File  |  2002-08-04  |  1.2 KB  |  44 lines

  1. Short:    Execute a command after/on a given time (w/src)
  2. Author:   cisc@c2i.net (Sigbjørn Skjæret)
  3. Uploader: cisc@c2i.net (Sigbjørn Skjæret)
  4. Version:  2.0
  5. Type:     util/cli
  6.  
  7. Very powerful poor-man's cron-tab that is
  8. 100% Pure so it can be made resident.
  9.  
  10. (This has actually been laying on my disk for quite a
  11. while in the need for better docs, I just made a quick
  12. cleanup so you get the general idea, and hopefully you
  13. will figure out the rest by yourself. ;) )
  14.  
  15.  
  16. Examples:
  17.  
  18. $ waitx TIME=12:34:12 echo "this is an example"
  19.   Waits until 12:34:12 is reached and will execute echo
  20.  
  21. $ waitx H=5 M=36 echo "this is an example"
  22.   Will wait 5 hours and 36 minutes and execute echo
  23.  
  24. $ waitx HOURS=2 MINS=12 SECS=59
  25.   Will wait 2 hours, 12 minutes and 59 seconds and then
  26.   returns to the prompt
  27.  
  28. $ waitx DY=1 L=5 echo "this is an example"
  29.   Will wait 1 day and execute echo,
  30.   then repeat this a total of 5 times
  31.  
  32. $ waitx M=15 ALWAYS echo "this is an example"
  33.   Will execute echo every 15 minutes
  34.  
  35. $ waitx D=12/9 T=16 L=0 echo "this is an example"
  36.   Will wait until September 12th 16:00 and execute echo,
  37.   and repeat forever
  38.  
  39. $ waitx echo "this is an example"
  40.   Will execute echo immediatly
  41.  
  42.  
  43. - CISC
  44.